package com.example.elderlycare.controller.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

public class BookRecordRequestBody {
    @Data
    public static class AddBookRecord {
        @NotNull
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date bookingDate;
        @NotNull
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date checkInDate;
        @NotBlank
        private String bookerName;
        @NotBlank
        private String bookerPhone;
        @NotBlank
        private String elderName;
        @NotNull
        private Integer elderCertificateId;
        @NotBlank
        private String elderNumber;
        @NotNull
        private Integer nurseId;
        @NotBlank
        private String selfCareSituation;
    }

    @Data
    public static class UpdateBookRecord {
        @NotNull
        private Integer id;
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date bookingDate;
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date checkInDate;
        private String bookerName;
        private String bookerPhone;
        private String elderName;
        private Integer elderCertificateId;
        private String elderNumber;
        private Integer nurseId;
        private String selfCareSituation;
        private Integer status;
    }
}
